package com.xjscrm.console.chat.frame.send;

import com.xjscrm.console.chat.enums.ChatMsgType;
import com.xjscrm.console.chat.frame.dto.ChatDeviceDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 拉取机器人的消息
 *
 * @author mingyang.chen create in 2024/3/11 18:08
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class SPullDeviceResultMsg extends SResultMsg {

    @ApiModelProperty("当前员工管理的设备")
    private List<ChatDeviceDTO> devices = new ArrayList<>();

    public SPullDeviceResultMsg() {
        this.setResultType(ChatMsgType.s_pull_device.getCode());
        this.setResultTypeDesc(ChatMsgType.s_pull_device.getDesc());
    }
}
